package com.zjy.weather.bean

import com.alibaba.fastjson.annotation.JSONField
import java.io.Serializable

/**
 * Created by zhongjy on 2017/11/2.
 * Copyright (C) 2017 zhongjy. All rights reserved.
 */
class Weather : Serializable {
    constructor()

    var basic: Basic? = null
    @JSONField(name = "daily_forecast")
    var daily: List<DailyWeather>? = null
    var status: String? = null
    var update: Update? = null
    @JSONField(name = "now")
    var weatherNow: WeatherNow? = null
    @JSONField(name = "lifestyle")
    var lifeStyle: List<LifeStyle>? = null
}

class Basic : Serializable {
    constructor()

    var cid: String? = null
    var location: String? = null
    var parent_city: String? = null
    var admin_area: String? = null
    var cnty: String? = null
    var lat: String? = null
    var lon: String? = null
    var tz: String? = null
}

class DailyWeather : Serializable {
    constructor()

    var cond_code_d: Int = 0
    var cond_code_n: Int = 0
    var cond_txt_d: String? = null
    var cond_txt_n: String? = null
    var date: String? = null
    var hum: Int = 0
    var pop: Int = 0
    var pres: Int = 0
    var tmp_max: Int = 0
    var tmp_min: Int = 0
    var uv_index: Int = 0
    var vis: Int = 0
    var wind_deg: Int = 0
    var wind_dir: String? = null
    var wind_sc: String? = null
    var wind_spd: Int? = null

    var sr: String? = null
    var ss: String? = null
    var mr: String? = null
    var ms: String? = null
    var pcpn: String? = null
}

class LifeStyle : Serializable {
    constructor()

    var brf: String? = null
    var txt: String? = null
    var type: String? = null
}

class WeatherNow : Serializable {
    constructor()

    var cloud: Int = 0
    var cond_code: Int = 0
    var cond_txt: String? = null
    var fl: Int = 0
    var hum: Int = 0
    var pcpn: String? = null
    var pres: Int = 0
    var tmp: Int = 0
    var vis: Int = 0
    var wind_deg: Int = 0
    var wind_dir: String? = null
    var wind_sc: String? = null
    var wind_spd: Int = 0
}

class Update : Serializable {
    constructor()

    var loc: String? = null
    var utc: String? = null
}


class HeWeather : Serializable {
    constructor()

    @JSONField(name = "HeWeather6")
    var weather: List<Weather>? = null
}